package com.ys.entity.logistics;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TL_CustomsDeclarationItem", catalog="Id")
public class TlCustomsDeclarationItem extends BaseEntity<TlCustomsDeclarationItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="DecCustomSubId", nameJava="decCustomSubId", typeDataBase="bigint")
	private Long decCustomSubId;
	@YsField(nameDataBase="FbaLogsticsOrderId", nameJava="fbaLogsticsOrderId", typeDataBase="bigint")
	private Long fbaLogsticsOrderId;
	@YsField(nameDataBase="BidFbaBox", nameJava="bidFbaBox", typeDataBase="varchar")
	private String bidFbaBox;
	@YsField(nameDataBase="BoxIndex", nameJava="boxIndex", typeDataBase="int")
	private Integer boxIndex;
	@YsField(nameDataBase="FbaLogsticsOrderDetailGuid", nameJava="fbaLogsticsOrderDetailGuid", typeDataBase="varchar")
	private String fbaLogsticsOrderDetailGuid;
	@YsField(nameDataBase="CodePlan", nameJava="codePlan", typeDataBase="varchar")
	private String codePlan;
	@YsField(nameDataBase="CustomsQuantity", nameJava="customsQuantity", typeDataBase="int")
	private Integer customsQuantity;
	@YsField(nameDataBase="GoodsTotalWeight", nameJava="goodsTotalWeight", typeDataBase="decimal")
	private BigDecimal goodsTotalWeight;
	@YsField(nameDataBase="SaleUnitPrice", nameJava="saleUnitPrice", typeDataBase="decimal")
	private BigDecimal saleUnitPrice;
	@YsField(nameDataBase="SaleTotalPrice", nameJava="saleTotalPrice", typeDataBase="decimal")
	private BigDecimal saleTotalPrice;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TlCustomsDeclarationItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TlCustomsDeclarationItem setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public Long getDecCustomSubId() {
		return decCustomSubId;
	}
	public TlCustomsDeclarationItem setDecCustomSubId(Long decCustomSubId) {
		this.decCustomSubId = decCustomSubId;
		return this;
	}
	public Long getFbaLogsticsOrderId() {
		return fbaLogsticsOrderId;
	}
	public TlCustomsDeclarationItem setFbaLogsticsOrderId(Long fbaLogsticsOrderId) {
		this.fbaLogsticsOrderId = fbaLogsticsOrderId;
		return this;
	}
	public String getBidFbaBox() {
		return bidFbaBox;
	}
	public TlCustomsDeclarationItem setBidFbaBox(String bidFbaBox) {
		this.bidFbaBox = bidFbaBox;
		return this;
	}
	public Integer getBoxIndex() {
		return boxIndex;
	}
	public TlCustomsDeclarationItem setBoxIndex(Integer boxIndex) {
		this.boxIndex = boxIndex;
		return this;
	}
	public String getFbaLogsticsOrderDetailGuid() {
		return fbaLogsticsOrderDetailGuid;
	}
	public TlCustomsDeclarationItem setFbaLogsticsOrderDetailGuid(String fbaLogsticsOrderDetailGuid) {
		this.fbaLogsticsOrderDetailGuid = fbaLogsticsOrderDetailGuid;
		return this;
	}
	public String getCodePlan() {
		return codePlan;
	}
	public TlCustomsDeclarationItem setCodePlan(String codePlan) {
		this.codePlan = codePlan;
		return this;
	}
	public Integer getCustomsQuantity() {
		return customsQuantity;
	}
	public TlCustomsDeclarationItem setCustomsQuantity(Integer customsQuantity) {
		this.customsQuantity = customsQuantity;
		return this;
	}
	public BigDecimal getGoodsTotalWeight() {
		return goodsTotalWeight;
	}
	public TlCustomsDeclarationItem setGoodsTotalWeight(BigDecimal goodsTotalWeight) {
		this.goodsTotalWeight = goodsTotalWeight;
		return this;
	}
	public BigDecimal getSaleUnitPrice() {
		return saleUnitPrice;
	}
	public TlCustomsDeclarationItem setSaleUnitPrice(BigDecimal saleUnitPrice) {
		this.saleUnitPrice = saleUnitPrice;
		return this;
	}
	public BigDecimal getSaleTotalPrice() {
		return saleTotalPrice;
	}
	public TlCustomsDeclarationItem setSaleTotalPrice(BigDecimal saleTotalPrice) {
		this.saleTotalPrice = saleTotalPrice;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TlCustomsDeclarationItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TlCustomsDeclarationItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TlCustomsDeclarationItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TlCustomsDeclarationItem tlCustomsDeclarationItem(
		String pbid,
		Long decCustomSubId,
		Long fbaLogsticsOrderId,
		String bidFbaBox,
		Integer boxIndex,
		String fbaLogsticsOrderDetailGuid,
		String codePlan,
		Integer customsQuantity,
		BigDecimal goodsTotalWeight,
		BigDecimal saleUnitPrice,
		BigDecimal saleTotalPrice,
		Integer status
			) {
		TlCustomsDeclarationItem entity = new TlCustomsDeclarationItem();
		entity.setPbid(pbid);
		entity.setDecCustomSubId(decCustomSubId);
		entity.setFbaLogsticsOrderId(fbaLogsticsOrderId);
		entity.setBidFbaBox(bidFbaBox);
		entity.setBoxIndex(boxIndex);
		entity.setFbaLogsticsOrderDetailGuid(fbaLogsticsOrderDetailGuid);
		entity.setCodePlan(codePlan);
		entity.setCustomsQuantity(customsQuantity);
		entity.setGoodsTotalWeight(goodsTotalWeight);
		entity.setSaleUnitPrice(saleUnitPrice);
		entity.setSaleTotalPrice(saleTotalPrice);
		entity.setStatus(status);
		return entity;
	}
}